<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">
	
	var a = 'evlo';
	//love
	var a = a.split('');
	a.push(a.splice(1,1));
	a.push(a.shift());
	a = a.join('');
	alert(a);

</script>
<input><input><input>

</body>
</html>